/*
    This file is part of Slydini.

    Slydini is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Slydini is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Slydini.  If not, see <http://www.gnu.org/licenses/>.
*/
/********************************************************************************
** Form generated from reading ui file 'right_menu.ui'
**
** Created: Thu 9. Apr 16:16:24 2009
**      by: Qt User Interface Compiler version 4.5.0
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
********************************************************************************/

#ifndef RIGHT_MENU_H
#define RIGHT_MENU_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QHeaderView>
#include <QtGui/QToolButton>
#include <QtGui/QLabel>
#include <QtGui/QWidget>
#include <QPixmap> 
#include <QDir>

#include "../configuration/configuration.h"
#include "../tinyxml/tinyxml.h"


QT_BEGIN_NAMESPACE

class Ui_Right_form
{      
public:
    QToolButton *toolButtonP1;
    QToolButton *toolButtonRU;
    QToolButton *toolButtonP2;
    QToolButton *toolButtonP3;
    QToolButton *toolButtonRD;
    QToolButton *toolButtonN;
    QToolButton *toolButtonC;
    QLabel *labelU;
    QLabel *labelD;
    QPixmap *picture1;
    QPixmap *picture2;
    QPixmap *picture3;
    int last_image;
    int c_image;


    void setupUi(QWidget *Right_form)
    {   
        Configuration *c = Configuration::getConfiguration("configuration.xml");
        if (Right_form->objectName().isEmpty())
            Right_form->setObjectName(QString::fromUtf8("Right_form"));
        Right_form->setGeometry(c->queryInt("desktop/width")-200,0,200,c->queryInt("desktop/height"));
        Right_form->resize(200, c->queryInt("desktop/height"));
        Right_form->setContextMenuPolicy(Qt::NoContextMenu);
        Right_form->setWindowFlags(Qt::FramelessWindowHint);
        
        toolButtonRU = new QToolButton(Right_form);
        toolButtonRU->setObjectName(QString::fromUtf8("toolButtonRU"));
        toolButtonRU->setGeometry(QRect(30, 10, 140, 60));
        toolButtonRU->setAutoFillBackground(false);
        QIcon icon;
        icon.addPixmap(QPixmap(QString::fromUtf8("gui/ikonki/ru.png")), QIcon::Normal, QIcon::Off);
        toolButtonRU->setIcon(icon);
        toolButtonRU->setIconSize(QSize(140, 60));
        


        toolButtonP1 = new QToolButton(Right_form);
        toolButtonP1->setObjectName(QString::fromUtf8("toolButtonP1"));
        toolButtonP1->setGeometry(QRect(30, 80, 140, 105));
        toolButtonP1->setAutoFillBackground(true);
        QIcon icon1;
               
        toolButtonP2 = new QToolButton(Right_form);
        toolButtonP2->setObjectName(QString::fromUtf8("toolButtonP2"));
        toolButtonP2->setGeometry(QRect(30, 190, 140, 105));
        toolButtonP2->setAutoFillBackground(true);
        QIcon icon2;
        
        toolButtonP3 = new QToolButton(Right_form);
        toolButtonP3->setObjectName(QString::fromUtf8("toolButtonP3"));
        toolButtonP3->setGeometry(QRect(30, 300, 140, 105));
        toolButtonP3->setAutoFillBackground(true);
        QIcon icon3;
        
        QDir dir(QString("gui/images2/"), "*.jpg");
        for (uint i = 0; i < dir.count(); i++) {
            if (i==0){
            icon1.addPixmap(QPixmap(QString::fromUtf8("gui/images2/") + dir[i]), QIcon::Normal, QIcon::Off);
            last_image=i;
            //labelU->setText(dir[i]);
               //picture1 = new QPixmap(QString::fromUtf8("G:/slydini/gui/images2/") + dir[i]);                   
            }
            if (i==1){
            icon2.addPixmap(QPixmap(QString::fromUtf8("gui/images2/") + dir[i]), QIcon::Normal, QIcon::Off);
            last_image=i;
               //picture2 = new QPixmap(QString::fromUtf8("G:/slydini/gui/images2/") + dir[i]);                  
            }
            if (i==2){
            icon3.addPixmap(QPixmap(QString::fromUtf8("gui/images2/") + dir[i]), QIcon::Normal, QIcon::Off);  
            //labelD->setText(dir[i]);
            last_image=i;
            }                               
        }        
        
        
          
         
        
        
        //icon1.addPixmap(QPixmap(QString::fromUtf8("images2/1.jpg")), QIcon::Normal, QIcon::Off);
        toolButtonP1->setIcon(icon1);
        toolButtonP1->setIconSize(QSize(140, 105));
        toolButtonP1->setCheckable(false);        
        
              
        //icon2.addPixmap(QPixmap(QString::fromUtf8("images2/2.jpg")), QIcon::Normal, QIcon::Off);
        toolButtonP2->setIcon(icon2);
        toolButtonP2->setIconSize(QSize(140, 105));
        toolButtonP2->setCheckable(false);
        
               
        //icon3.addPixmap(QPixmap(QString::fromUtf8("images2/3.jpg")), QIcon::Normal, QIcon::Off);
        toolButtonP3->setIcon(icon3);
        toolButtonP3->setIconSize(QSize(140, 105));
        toolButtonP3->setCheckable(false);
        
        
        
        toolButtonRD = new QToolButton(Right_form);
        toolButtonRD->setObjectName(QString::fromUtf8("toolButtonRD"));
        toolButtonRD->setGeometry(QRect(30, 410, 140, 60));
        toolButtonRD->setAutoFillBackground(true);
        QIcon icon4;
        icon4.addPixmap(QPixmap(QString::fromUtf8("gui/ikonki/rd.png")), QIcon::Normal, QIcon::Off);
        toolButtonRD->setIcon(icon4);
        toolButtonRD->setIconSize(QSize(140, 60));
        toolButtonRD->setCheckable(false);
        
        toolButtonN = new QToolButton(Right_form);
        toolButtonN->setObjectName(QString::fromUtf8("toolButtonN"));
        toolButtonN->setGeometry(QRect(45, 520, 110, 110));
        toolButtonN->setAutoFillBackground(true);
        icon4.addPixmap(QPixmap(QString::fromUtf8("gui/ikonki/rn.png")), QIcon::Normal, QIcon::Off);
        toolButtonN->setIcon(icon4);
        toolButtonN->setIconSize(QSize(110, 110));
        toolButtonN->setCheckable(false);
        
        toolButtonC = new QToolButton(Right_form);
        toolButtonC->setObjectName(QString::fromUtf8("toolButtonC"));
        toolButtonC->setGeometry(QRect(45, 640, 110, 110));
        toolButtonC->setAutoFillBackground(true);
        icon4.addPixmap(QPixmap(QString::fromUtf8("gui/ikonki/rc.png")), QIcon::Normal, QIcon::Off);
        toolButtonC->setIcon(icon4);
        toolButtonC->setIconSize(QSize(110, 110));
        toolButtonC->setCheckable(false);

        retranslateUi(Right_form);
        //changeImages(Right_form);
        //QObject::connect(toolButtonRU, SIGNAL(clicked()), Right_form, SLOT(changeImages()));
        //QObject::connect(toolButtonRD, SIGNAL(clicked()), Right_form, SLOT(close()));

        QMetaObject::connectSlotsByName(Right_form);
    } // setupUi

    void retranslateUi(QWidget *Right_form)
    {
        Right_form->setWindowTitle(QApplication::translate("Right_form", "Form", 0, QApplication::UnicodeUTF8));
        toolButtonP1->setText(QString());
        toolButtonRU->setText(QString());
        toolButtonP2->setText(QString());
        toolButtonP3->setText(QString());
        toolButtonRD->setText(QString());
        toolButtonN->setText(QString());
        toolButtonC->setText(QString());
        Q_UNUSED(Right_form);
    } // retranslateUi


};

namespace Ui {
    class Right_form: public Ui_Right_form {};
} // namespace Ui

QT_END_NAMESPACE

#endif // RIGHT_MENU_H
